<template>
  <div>
    <h2>Movie</h2>
    <p>count的值是:{{ count }}</p>
    <button @click="getMovieList">获取电影列表</button>
    <ul>
      <li v-for="item in movieList" :key="item.tvId">
        {{ item.albumName }}
      </li>
    </ul>
  </div>
</template>

<script>
import { mapState, mapActions } from "vuex";
export default {
  name: "Movie",

  computed: {
    ...mapState(["count"]),
    ...mapState(["movieList"]),
  },

  methods: {
    ...mapActions(["getMovieList"]),
  },
};
</script>

<style></style>
